Ext.define('HIT.store.PermissionTree', {
    extend: 'Ext.data.TreeStore',

    requires: [
        'HIT.model.LeftTree'
    ],

    constructor: function(cfg) {
        var me = this;
        cfg = cfg || {};
        me.callParent([Ext.apply({
            autoLoad: false,
            autoSync: false,      
            storeId: 'permissionTreeId',
            root:{text:Share.T("用户数据权限"),
 	            iconCls:'tj-tree-folder'},
            model: 'HIT.model.LeftTree',        
            proxy: {
                type: 'ajax',
                url:'getPermissionTreeList',              
                reader: {
                	    type: 'json', 
	                    totalProperty: '', 
	                    root: '' 
                }
            }
        }, cfg)]);
    }
});